package com.guan.ordering_sys.generator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guan.ordering_sys.common.PageResult;
import com.guan.ordering_sys.generator.entity.Goods;
import com.guan.ordering_sys.param.GoodsUpdateParam;
import com.guan.ordering_sys.param.PageParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 关远键
 * @since 2021-06-18
 */
public interface GoodsService extends IService<Goods> {

    Goods getGoodsById(Long id);

    PageResult getList(PageParam pageParam);

    int insert(Goods param, MultipartFile picture);

    int updateById(GoodsUpdateParam param, MultipartFile picture);

    int deleteById(Long id);

}
